package com.baylor.server.business.service;

import java.util.List;
import java.util.Map;

import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;

import com.baylor.server.business.entity.UserInfo;

public interface UserInfoService {

	public Page<UserInfo> findUserDataByFilter(Map<String, Object> filterParams,
			Pageable pageable);

	public UserInfo save(UserInfo user);

	public UserInfo userForbid(Integer userId);

	public UserInfo findOne(Integer userId);

	public UserInfo userUpdateByUserIdSave(UserInfo user);
	
	
	
	public void delUserInfo(int id);


	public UserInfo userAllow(Integer userId);

	public UserInfo userRegister(UserInfo user);

	public UserInfo findUserByPhone(String userPhone);

	public UserInfo update(UserInfo userdb);

	public UserInfo findUserByPhoneAndEmail(String userEmail, String userPhone);

	public UserInfo userPwdChuShiHua(Integer userId);

	public UserInfo findEmail(String userEmail);


    /**
     * 查询出登录
     * @param startTime
     * @param endTime
     * @param lang
     * @return
     */
    public List<UserInfo>  findUserInfoListByCondition(String startTime,String endTime,String userType);
	public UserInfo saveUserPrizeCount(UserInfo user);
}
